<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>orgTree</title>
</head>
<link rel="stylesheet" href="/resa/css/reset.css">
<style type="text/css">
.form-control__dept {
	margin: 100px;
}
.form-control__label {
	float: left;
	line-height: 38px;
}
.form-control__input {
	margin-left: 100px;
}
.titile {
	margin: 50px 100px;
}
.titile h4{
	position: absolute;
	margin-top: 15px;
}
.titile h4:after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 0;
	right: -10px;
	height: 2px;
	background-color: #ccc;
}
#checkBtn {
	margin: 50px 100px 0;
	padding: 5px 15px;
	background-color: #E4E6E9;
	color: #666;
	width: 200px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
}
#checkBtn:hover {
	color: #fff;
	background-color: #000;
}
.quebtn{
	padding: 9px 31px;
	border-radius: 19px;
	background: #1FD6BB;
	color: white;
	border: 0px;
}

</style>
<body>
	<div class="form-control form-control__dept">
		
		<div class="form-control__label"><label class="form-label">参与人员</label></div>
		<div class="form-control__input">
			<div class="js_party_select_result">
				<div class="js_party_select_result_list"></div>
				<div class="diva">
				<a class="js_show_party_selector "
	style="padding: 0px 30px;
    background: #1FD6BB;
    border-radius: 19px;
    color: white;
    border: 0px;" href="javascript:;"></a>
				</div>
				<input id="field-dept" class="form-input" type="text" value="" name="dept" style="display: none;">
			</div>
		</div>
	</div>	
	
		<!---->
	<!--<div id="checkBtn">点击查看已选择内容的id</div>-->
	
    <script src="/resa/vendors/jquery/dist/jquery.min.js"></script>
<script src='/resa/js/orgTree.js'></script>
<script>
$(function(){



	// 调用
	$('.form-control').orgTree({
        all: true,                //人物组织都开启
        area: ['620px','548px'],  //弹窗框宽高
        search: true              //开启搜索
	});

    //其他
    $('#checkBtn').on('click', function(){
    	console.log($('#field-dept'))
        alert($('#field-dept').val());
    });

//获得当前项目的参与人员
	$.ajax({
		url:'/resa/project/users.do',
		type:'post',
		dataType:'json',
		async:false,
		success:function(result){
			console.log("参与人员")
			console.log(result.data)
			console.log($("#field-dept").html());
			$("#field-dept").val(result.data);
		}
	})


});


</script>
</body>
</html>